<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("<@s.m 'error.checkRecord'/>");
		return;
	}
	if(!confirm("<@s.m 'global.confirm.delete'/>")) {
		return;
	}
	var f = getTableForm();
	f.action="o_delete.do";
	f.submit();
}
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  VIP商品管理 - <@s.m "global.list"/></div>
	<form class="ropt">
		<input class="add" type="submit" value="<@s.m "global.add"/>" onclick="this.form.action='v_add.do';"/> 
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form action="v_list.do" method="post" style="padding-top:5px;">
<div>
会员分组：<@p.select name="vipLevel"  value=vipLevel  list=listVipLevel headerKey="" headerValue="请选择" listKey="priority" listValue="name"/>
商品类别: <@p.select name="productCateId" value=productCateId list=listProductCate headerKey="" listKey="id" listValue="cateName" />
商品名称: <input type="text" name="productName" value="${productName!}" style="width:100px"/>

<input class="query" type="submit" value="<@s.m "global.query"/>"/>
</div>
</form>
<form id="tableForm" method="post">
<input type="hidden" name="pageNo" value="${pageNo!}"/>
<@p.table value=pagination;product,i,has_next><#rt/>
	<@p.column title="<input type='checkbox' onclick='Pn.checkbox(\"ids\",this.checked)'/>" width="20">
		<input type='checkbox' name='ids' value='${product.id}'/><#t/>
	</@p.column><#t/>
	<@p.column code="商品名称">${product.productName!}</@p.column><#t/>
	<@p.column code="商铺名称">${product.shop.shopName!}</@p.column><#t/>
	<@p.column code="商品类别">${product.productCate.cateName!}</@p.column><#t/>
	<@p.column code="商品价格">${product.price!}</@p.column><#t/>
	<@p.column code="会员等级">${product.userLevelValue!}</@p.column><#t/>
	<@p.column code="购买数量限制">${product.limitCount!}</@p.column><#t/>
	<@p.column code="商品状态">${product.statusName!}</@p.column><#t/>
	<@p.column code="排序号">${product.orderNum!}</@p.column><#t/>
	
	<@p.column code="createDate">${product.createTime}</@p.column><#t/>
	<@p.column code="updateDate">${product.updateTime!}</@p.column><#t/>
	<@p.column code="global.operate" align="center">
		<a href="v_toEditProduct.do?id=${product.id}&pageNo=${pageNo!}" class="pn-opt"><@s.m "global.edit"/></a> | <#rt/>
		<a href="o_delete.do?ids=${product.id}&pageNo=${pageNo!}" onclick="if(!confirm('<@s.m "global.confirm.delete"/>')) {return false;}" class="pn-opt"><@s.m "global.delete"/></a>|<#t/>
        <a href="../indexPublish/v_add.do?relationId=${product.id!}&from=4" class="pn-opt">首页发布</a>

	</@p.column><#t/>
</@p.table>
<div><input class="del-button" type="button" value="<@s.m "global.delete"/>" onclick="optDelete();"/></div>
</form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>